<!doctype html>
 <html lang="zh-CN">
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="../view/admin/css/common.css">
   <link rel="stylesheet" href="../view/admin/css/main.css">
   <script type="text/javascript" src="../view/admin/js/jquery.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/common.js"></script>
   <script language="javascript" type="text/javascript"  src="../view/admin/js/My97DatePicker/WdatePicker.js"></script>
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        $("form").submit(function(event) {
          if($("#name").val()==""){
            alert("请填写姓名");
            $("#name").focus();
            return false;
          }
          if($("#depart").val()==""){
            alert("请填写工号");
            $("#depart").focus()
            return false;
          }
          
         
        });
        
      }); 
   </script>
   <title>添加教师</title>

   
 </head>
 <body>
  <div class="container" style="width:60%;align:center;margin-left:20%">
     
 
     <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top pl15"><span style="align:center;font-size:14
              pt;font-family:黑体">添加教师</span></div>
            <div class="box_center">
              <form action="index.php?c=init&a=teacherAddAction" class="jqtransform" method="post">
               <table  border="0" cellpadding="0" cellspacing="0" class="list_table">
                
                <tr class="tr">
                  
                   <td style="width:20px"class="td_right">姓名：</td>
                   <td class="td_left"><input type="text" name="tname" id="name" class="input-text lh25" size="30"></td>
                 </tr>
                 <tr>
                <td style="width:30px"class="td_right">工号：</td>
                <td class="td_left"><input type="text" name="tno"  class="input-text lh25" size="30"></td>
              </tr>
                   <tr>
                   <td style="width:30px"class="td_right">部门：</td>
                   <td class="td_left" ><span class="fl">
                      <div class="select_border"> 
                        <div class="select_containers "> 
                        <select name="tdepart" class="select"> 
                        
                        <option value="1">计科</option>
                        <option value="2">软工</option>
                        <option value="3">网工</option>
                        <option value="4">电子</option>
                        <option value="4">外院</option>
                        </select> 
                        </div> 
                      </div> 
                    </span></td>
                 </tr>
                 
                 <tr>
                  <td colspan="2"class="td_center">
                  <input type="submit" name="button" class="btn btn82 btn_save2" value="保存"> 
                   </td>
                 </tr>
               </table>
               
               </form>
            </div>
          </div>
        </div>
     </div>
   </div> 
 </body>
 </html>
  